package com.easygoods.request;

import com.bestvike.stone.spring.exception.AssertUtils;
import com.bestvike.stone.spring.page.PageableRequest;
import com.easygoods.enums.OrderState;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author zhq
 * @date 2019/1/3 15:44
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class OrderListRequest extends PageableRequest {
    private List<OrderState> orderStateList;

    @Override
    public void assertValid() {
        super.assertValid();
        AssertUtils.notNull(this.orderStateList, "订单状态列表不能为null");
    }
}
